<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>选择结果</title>
</head>
<body>
感谢：<%=request.getAttribute("name") %><hr>
你喜欢的明星有：
<%
	String[] star = (String[])request.getAttribute("star");
	if(star==null){
%>
		您没有选择喜欢的明星！
<%		
	} else {
		String str = "";
		for(int i=0;i<star.length;i++){
			str += star[i]+", ";
		}
		str = str.substring(0,str.length()-1-1);
%>
		<%=str %>
<%		
	}
%>
</body>
</html>